//
//  NSTimer+FEAdd.m
//  familyeducation
//
//  Created by 聂志康 on 2017/7/31.
//  Copyright © 2017年 shangdingkeji. All rights reserved.
//

#import "NSTimer+FEAdd.h"

@implementation NSTimer (FEAdd)

-(void)pauseTimer{
    
    if (![self isValid]) {
        return ;
    }
    
    [self setFireDate:[NSDate distantFuture]]; //如果给我一个期限，我希望是4001-01-01 00:00:00 +0000
    
    
}


-(void)resumeTimer{
    
    if (![self isValid]) {
        return ;
    }
    
    //[self setFireDate:[NSDate dateWithTimeIntervalSinceNow:0]];
    [self setFireDate:[NSDate date]];
    
}
@end
